<?php
class Userimages_Data_Updateimage implements Userimages_Data_Mainable{
    
    private $core_controller_dataoperation;
    
    public function __construct() {
        $this->core_controller_dataoperation = new Core_Controller_Dataoperation;
    }
    
    public function main(array $variables = null) {
        $variables['query'] = "UPDATE user_images SET image_description='".$variables['post']['image_description']."' WHERE image_name = '".$variables['post']['image_name']."' AND username = '".$_SESSION['username']."';";
        return $this->core_controller_dataoperation->main($variables);
    }
}
